package com.icehand.mybatis.payment.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author icehand
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName("pay_notify_record")
public class PayNotifyRecord extends Model<PayNotifyRecord> {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Integer appId;
    private Integer channelId;
    private String orderNo;
    private String tradeNo;
    private BigDecimal amount;
    private String tradeStatus;
    private String notifyData;
    private Date createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
